import request from '@/utils/request'

// 查询定时任务调度列表
export function elderArchive(query) {
    return request({
        url: '/elder-archive/ea/queryPage',
        method: 'get',
        params: query
    })
}
// 删除定时任务调度
export function elderArchiveDel(jobId) {
    return request({
        url: '/elder-archive/ea/delete',
        method: 'delete',
        data:jobId
    })
}

export function systemUser(id) {
    return request({
        url: '/system/user/list?deptId='+id,
        method: 'get'
    })
}


export function region(id) {
    return request({
        url: 'system/region/selectChildren/'+id,
        method: 'get'
    })
}
// 新增定时任务调度
export function addelderArchive(data) {
    return request({
        url: '/elder-archive/ea/save',
        method: 'post',
        data: data
    })
}

export function elderArchiveinfo(id) {
    return request({
        url: '/elder-archive/ea/info/'+id,
        method: 'get',
    })
}
export function updateelderArchive(data) {
    return request({
        url: '/elder-archive/ea/update',
        method: 'put',
        data: data
    })
}
